Related Vulnerabilities: CVE-2021-22884  

Node.js before versions 15.10.0, 14.16.0, 12.21.0 and 10.24.0 is vulnerable to denial of service attacks when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.

Severity Medium

Remote Yes

Type Denial of service

Description

Node.js before versions 15.10.0, 14.16.0, 12.21.0 and 10.24.0 is vulnerable to denial of service attacks when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.

AVG-1608 nodejs-lts-dubnium 10.23.2-1 Medium Vulnerable

AVG-1607 nodejs-lts-erbium 12.20.1-1 Medium Vulnerable

AVG-1606 nodejs-lts-fermium 14.15.4-1 Medium Vulnerable

AVG-1604 nodejs 15.9.0-1 Medium Vulnerable

https://nodejs.org/en/blog/vulnerability/february-2021-security-releases/#dns-rebinding-in-inspect-cve-2021-22884
https://hackerone.com/bugs?report_id=1069487
https://github.com/nodejs-private/node-private/pull/244
https://github.com/nodejs/node/commit/43ae9c46c35a935723a9109828c87380d781e147
https://github.com/nodejs/node/commit/1ca3f5abcbe03bc037e264291b8bec606daae30a
https://github.com/nodejs/node/commit/1564752d553f582c8048ee45614f870ee2a446c9
https://github.com/nodejs/node/commit/d1cf6a9b0f74d587dea1d0f194d922ff94eddd06